<template>
  <div class="head media-head">
    <div class="public-title">
      <div class="title-fl">查询条件</div>
    </div>
    <div class="items">
      <span>项目名称:</span>
      <el-input class="proName" size="small" placeholder="请输入项目名称" v-model="parameter.xmmc" clearable>
      </el-input>
      <span>事项名称:</span>
      <el-input class="proName" size="small" placeholder="请输入事项名称" v-model="parameter.xmmc1" clearable>
      </el-input>
      <span>申报人:</span>
      <el-input class="proName" size="small" placeholder="请输入申报人" v-model="parameter.sbr" clearable>
      </el-input>
      <el-button type="primary" size="small" icon="el-icon-search " class="iconfontdbot" @click="querylist">查询</el-button>
      <el-button type="primary" size="small" icon="el-icon-refresh" class="iconfontdbot" @click="reset">重置</el-button>
    
    </div>
  </div>
</template>

<script>

  export default {
    data() {
      return {
        parameter: {
          xmmc: '',
          xmmc1: '',
          sbr: ''
        }
      }
    },
    methods: {
      // 重置
      reset() {
        this.parameter = {
          xmmc: '',
          xmmc1: '',
          sbr: ''
        };
        this.$emit('queryParams', this.parameter);
      },
      querylist() {
        this.$emit('queryParams',this.parameter)
      },
    
    }
  }
</script>

<style rel="stylesheet/scss" lang="scss" scoped>

.head {
  background: #ffffff;
  padding: 12px 0;
  box-shadow: 0px 0px 12px #eaeeef;
  padding-bottom: 22px;
  .public-title {
    margin-bottom: 12px;
    display: flex;
    position: relative;
    &:before {
      position: absolute;
      top: 50%;
      height: 15px;
      display: block;
      content: "";
      transform: translate(0, -50%);
      border-left: 3px solid #3385ff;
    }
    .title-fl {
      padding-left: 20px;
      height: 28px;
      line-height: 28px;
      font-size: 15px;
      color: #434654;
      font-weight: 700;
    }
    .title-fr {
      margin-left: auto;
      padding-right: 22px;
    }
  }
  .items {
    display: inline-block;
    position: relative;
    span {
      color: #7c8195;
      margin-right: 8px;
      font-size: 12px;
      height: 26px;
      line-height: 26px;
      display: inline-block;
      vertical-align: middle;
      margin-left: 18px;
    }
    .proName {
      width: 185px;;
    }
    .iconfontdbot {
      margin-left: 15px;
    }
  }
}
.content {
  width: 100%;
  height: 100%;
  padding: 16px;
  box-sizing: border-box;
}
</style>
